﻿<%
'如果需要重定向URL，把这里改成true
Public Function UrlRewrite()
    UrlRewrite = False
End Function

Public Function MapUrl(ByRef page)
    If UrlRewrite() = True Then
        MapUrl = page & ".html"
    Else
        MapUrl = page & ".asp"
    End If
End Function

Public Function MapUrl2(ByRef page, ByRef paramName, ByRef paramValue)
    If UrlRewrite() = True Then
        MapUrl2 = page & "_" & paramValue & ".html"
    Else
        MapUrl2 = page & ".asp?" & paramName & "=" & paramValue
    End If
End Function

Public Function MapUrl3(ByRef page, ByRef paramName1, ByRef paramValue1, ByRef paramName2, ByRef paramValue2)
    If UrlRewrite() = True Then
        MapUrl3 = page & "_" & paramValue1 & "_" & paramValue2 & ".html"
    Else
        MapUrl3 = page & ".asp?" & paramName1 & "=" & paramValue1 & "&" & paramName2 & "=" & paramValue2
    End If
End Function
%>
